package com.ylr.basic.framework.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-07-06 22:41:05
 * className: EphemeralDataEntity
 * version: 1.0
 * description:
 * 	临时数据表
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("yb_ephemeral_data")
public class EphemeralDataEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Long id;

	/**
	 * 业务主键
	 */
	private Long businessId;

	/**
	 * 业务类型
	 */
	private Integer businessType;

	/**
	 * 业务数据
	 */
	private String businessValue;

	/**
	 * 过期时间（时间戳）
	 */
	private Long expire;

	/**
	 * 版本号
	 */
	private Integer version;

	/**
	 * 删除状态[0-正常 1-删除]
	 */
	private Integer deleteStatus;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 创建用户
	 */
	private String createUser;

	/**
	 * 创建用户主键
	 */
	private Long createUserId;

}
